UserStatusSelector: set focusPolicy on accept button
authorJyrki Gadinger <nilsding@nilsding.org>
Fri, 21 Feb 2025 09:30:04 +0000 (10:30 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 21 Feb 2025 10:44:32 +0000 (10:44 +0000)
commit6a388966a3f7187cb738457c3a9650730517173a
tree3523a20e9ad64c5af5d98a28ca47a0b74da0475f
parent01ca1ba311b6b385a42b8893ca56538275b322cb
UserStatusSelector: set focusPolicy on accept button

otherwise the status text won't be set on macOS as the text box never
loses its focus

`Qt.StrongFocus` is the default focusPolicy on all platforms except for
macOS, there it's `Qt.TabFocus`

the other buttons of the UserStatusSelector don't need that focusPolicy
as they do not modify the model from values in the view

see also:
- https://bugreports.qt.io/browse/QTBUG-110295
- https://codebrowser.dev/qt6/qtdeclarative/src/quicktemplates/qquickabstractbutton.cpp.html#_ZN27QQuickAbstractButtonPrivate4initEv

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
src/gui/UserStatusSelector.qml